import config from '@/config'
import request from '@/utils/request'


// 首页入口列表
export function entranceList(params: any) {
    return request.post({ url: '/admin.auth.other/entranceList', params})
}

// 修改显示状态
export function stateEntrance(params: any) {
    return request.post({ url: '/admin.auth.other/stateEntrance', params })
}

// 添加首页入口
export function entranceAdd(params: any) {
    return request.post({ url: '/admin.auth.other/entranceAdd', params })
}

// 入口详情
export function detailEntrance(params: any) {
    return request.post({ url: '/admin.auth.other/detailEntrance', params })
}

// 编辑入口
export function entranceEdit(params: any) {
    return request.post({ url: '/admin.auth.other/entranceEdit', params })
}

// 入口删除
export function decEntrance(params: any) {
    return request.post({ url: '/admin.auth.other/decEntrance', params })
}

// --------------------------视频轮播管理--------------------------

// 首页视频轮播
export function videoList(params: any) {
    return request.post({ url: '/admin.auth.other/videoList', params })
}

// 添加视频轮播
export function videoAdd(params: any) {
    return request.post({ url: '/admin.auth.other/videoAdd', params })
}

// 视频轮播详情
export function detailVideo(params: any) {
    return request.post({ url: '/admin.auth.other/detailVideo', params })
}

// 编辑视频轮播
export function videoEdit(params: any) {
    return request.post({ url: '/admin.auth.other/videoEdit', params })
}

// 视频轮播删除
export function decVideo(params: any) {
    return request.post({ url: '/admin.auth.other/decVideo', params })
}



// --------------------------系统通知管理--------------------------

// 系统通知列表
export function messageList(params: any) {
    return request.post({ url: '/admin.auth.other/messageList', params })
}

// 添加系统通知
export function addMessage(params: any) {
    return request.post({ url: '/admin.auth.other/addMessage', params })
}

// 修改通知状态
export function stateMessage(params: any) {
    return request.post({ url: '/admin.auth.other/stateMessage', params })
}

// 修改通知内容
export function editMessage(params: any) {
    return request.post({ url: '/admin.auth.other/editMessage', params })
}

// 通知详情
export function detailMessage(params: any) {
    return request.post({ url: '/admin.auth.other/detailMessage', params })
}

// 删除通知
export function decMessage(params: any) {
    return request.post({ url: '/admin.auth.other/decMessage', params })
}





